package com.huajiao.management_system.service.impl;

import com.huajiao.management_system.bean.superadmin;
import com.huajiao.management_system.dao.superadminMapper;
import com.huajiao.management_system.service.superadminService;
import com.huajiao.management_system.util.MD5Util;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class supperadminServiceImpl implements superadminService {
    @Resource
    private superadminMapper superadminmapper;
    @Override
    public superadmin login(String username, String password) {

        String passwordMd5 = MD5Util.MD5Encode(password, "UTF-8");
        return superadminmapper.login(username, passwordMd5);
    }
}
